home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / iau.arc / SYSINT13.LST < prev    next >
Encoding:
File List  |  1986-10-25  |  4.6 KB  |  137 lines

  1.  The Microsoft MACRO Assembler , Version 1.25              Page    1-1
  2.                                   10-25-86    
  3.  
  4.  
  5.                              C    include     /h/model.h
  6.                              C    ;    define big or small model for library a
  7.                    ssembly code
  8.                              C    
  9.  = 0000                      C    FALSE    equ    0    ;for small model
  10.  = 0001                      C    TRUE    equ    1    ;for big model
  11.                              C    
  12.  =                           C    @bigmodel equ FALSE    ;select this for model 
  13.                    desired
  14.                              C    
  15.                              C    else
  16.                              C    %out    SMALL MODEL ASSEMBLY
  17.                              C    endif
  18.                              C    include     /h/prologue.h
  19.                              C    .list
  20.                     
  21.                     public         sysint13
  22.                     
  23.  0000  ????              flags         dw    ?
  24.                     
  25.  0002                   sysint13    proc
  26.                     
  27.  0002  55                        push    bp
  28.  0003  8B EC                        mov    bp,sp
  29.                               
  30.                               irp    reg,<ax,bx,cx,dx,si,di,ds,es>
  31.                               push    reg
  32.                               endm
  33.  0005  50                     +              push    ax
  34.  0006  53                     +              push    bx
  35.  0007  51                     +              push    cx
  36.  0008  52                     +              push    dx
  37.  0009  56                     +              push    si
  38.  000A  57                     +              push    di
  39.  000B  1E                     +              push    ds
  40.  000C  06                     +              push    es
  41.                               
  42.  000D  8B 5E 04                        mov    bx,@ab[bp]
  43.  0010  8B 07                        mov    ax,[bx]
  44.  0012  8B 4F 04                        mov    cx,4[bx]
  45.  0015  8B 57 06                        mov    dx,6[bx]
  46.  0018  8B 77 08                        mov    si,8[bx]
  47.  001B  8B 7F 0A                        mov    di,10[bx]
  48.  001E  36: 8E 5F 0C                   mov    ds,ss:[12][bx]
  49.  0022  36: 8E 47 0E                   mov    es,ss:[14][bx]
  50.  0026  36: 8B 5F 02                   mov    bx,ss:[2][bx]
  51.                     
  52.  002A  55                        push    bp
  53.  002B  CD 13                        int    13h
  54.  002D  5D                        pop    bp
  55.                     
  56.  002E  9C                        pushf
  57.  002F  2E: 8F 06 0000 R                   pop    flags
  58.  The Microsoft MACRO Assembler , Version 1.25              Page    1-2
  59.                                   10-25-86    
  60.  
  61.  
  62.                               
  63.  0034  53                        push    bx
  64.  0035  8B 5E 06                        mov    bx,@ab[2][bp]
  65.                     
  66.  0038  8F 47 02                        pop    [2][bx]
  67.  003B  36: 8C 47 0E                   mov    ss:[14][bx],es
  68.  003F  36: 8C 5F 0C                   mov    ss:[12][bx],ds
  69.  0043  89 07                        mov    [bx],ax
  70.  0045  89 4F 04                        mov    4[bx],cx
  71.  0048  89 57 06                        mov    6[bx],dx
  72.  004B  89 77 08                        mov    8[bx],si
  73.  004E  89 7F 0A                        mov    10[bx],di
  74.                     
  75.                               irp    reg,<es,ds,di,si,dx,cx,bx,ax>
  76.                               pop    reg
  77.                               endm
  78.  0051  07                     +              pop    es
  79.  0052  1F                     +              pop    ds
  80.  0053  5F                     +              pop    di
  81.  0054  5E                     +              pop    si
  82.  0055  5A                     +              pop    dx
  83.  0056  59                     +              pop    cx
  84.  0057  5B                     +              pop    bx
  85.  0058  58                     +              pop    ax
  86.                               
  87.  0059  5D                        pop    bp
  88.  005A  2E: A1 0000 R                   mov    ax,flags
  89.                               
  90.  005E  C3                        ret
  91.                     
  92.  005F                   sysint13    endp
  93.                              C    include    /h/epilogue.h
  94.                              C    ;    end of any assembly code
  95.                              C    
  96.  005F                        C    @CODE    ENDS
  97.                               end
  98.  
  99.  The Microsoft MACRO Assembler , Version 1.25              Page    Symbols-1
  100.                                   10-25-86    
  101.  
  102.  
  103. Segments and groups:
  104.  
  105.          N a m e              Size    align    combine    class
  106.  
  107. DGROUP . . . . . . . . . . . . .    GROUP
  108.   @DATAB . . . . . . . . . . . . .    0000    PARA      PUBLIC    'DATAB'
  109.   @DATAC . . . . . . . . . . . . .    0000    BYTE      PUBLIC    'DATAC'
  110.   @DATAI . . . . . . . . . . . . .    0000    BYTE      PUBLIC    'DATAI'
  111.   @DATAT . . . . . . . . . . . . .    0000    BYTE      PUBLIC    'DATAT'
  112.   @DATAU . . . . . . . . . . . . .    0000    BYTE      PUBLIC    'DATAU'
  113.   @DATAV . . . . . . . . . . . . .    0000    BYTE      PUBLIC    'DATAV'
  114. @CODE. . . . . . . . . . . . . .    005F    BYTE      PUBLIC    'CODE'
  115.  
  116. Symbols:            
  117.  
  118.          N a m e              Type    Value    Attr         
  119.  
  120. FALSE. . . . . . . . . . . . . .    Number    0000    
  121. FLAGS. . . . . . . . . . . . . .    L WORD     0000    @CODE
  122. SYSINT13 . . . . . . . . . . . .    N PROC    0002    @CODE    Global    Length =005D
  123. TRUE . . . . . . . . . . . . . .    Number    0001    
  124. @AB. . . . . . . . . . . . . . .    Number    0004    
  125. @BIGMODEL. . . . . . . . . . . .    Alias    FALSE         
  126. @COMFILE . . . . . . . . . . . .    Number    0000    
  127. @IB. . . . . . . . . . . . . . .    L BYTE     0000    @DATAI
  128. @IW. . . . . . . . . . . . . . .    L WORD     0000    @DATAI
  129. @SB. . . . . . . . . . . . . . .    L BYTE     0000    @DATAC
  130. @SW. . . . . . . . . . . . . . .    L WORD     0000    @DATAC
  131. @UB. . . . . . . . . . . . . . .    L BYTE     0000    @DATAU
  132. @UW. . . . . . . . . . . . . . .    L WORD     0000    @DATAU
  133.  
  134. Warning Severe
  135. Errors    Errors 
  136. 0    0
  137.